using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_ChiTietDeXuatCungUngManagerBase
    {
        public TBL_ChiTietDeXuatCungUngManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity Insert(TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity Update(TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity UpdateWithCondition(TBL_ChiTietDeXuatCungUngEntity obj,TBL_ChiTietDeXuatCungUngEntity objCond)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_ChiTietDeXuatCungUngEntity Delete(TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_ChiTietDeXuatCungUngEntity DeleteWithCondition(TBL_ChiTietDeXuatCungUngEntity objCond)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCTDeXuat duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity DeleteByMaCTDeXuat (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaCTDeXuat");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCTDeXuat 
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity DeleteByMaCTDeXuat (string MaCTDeXuat )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaCTDeXuat = MaCTDeXuat;  
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaCTDeXuat");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity DeleteByMaDXCungUng (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaDXCungUng 
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity DeleteByMaDXCungUng (string MaDXCungUng )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity DeleteByMaTB (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaTB 
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity DeleteByMaTB (string MaTB )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaTB = MaTB;  
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity DeleteBySoLuong (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.DeleteByField(obj,"SoLuong");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien SoLuong 
        /// </summary>
        /// <returns>TBL_ChiTietDeXuatCungUngEntity</returns>
        public TBL_ChiTietDeXuatCungUngEntity DeleteBySoLuong (int SoLuong )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.SoLuong = SoLuong;  
            return (TBL_ChiTietDeXuatCungUngEntity)Adapter.DeleteByField(obj,"SoLuong");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_ChiTietDeXuatCungUngEntity Select(TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return (TBL_ChiTietDeXuatCungUngEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_ChiTietDeXuatCungUngEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_ChiTietDeXuatCungUngEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectAllLST()
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_ChiTietDeXuatCungUngEntity()),new TBL_ChiTietDeXuatCungUngEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_ChiTietDeXuatCungUngEntity(),option),new TBL_ChiTietDeXuatCungUngEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTDeXuat (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaCTDeXuat");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTDeXuat (TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaCTDeXuat",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTDeXuat duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaCTDeXuatLST (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCTDeXuat"),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTDeXuat duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaCTDeXuatLST (TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaCTDeXuat",option),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTDeXuat 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTDeXuat (string MaCTDeXuat )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaCTDeXuat = MaCTDeXuat;  
            return Adapter.SelectByField(obj,"MaCTDeXuat");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTDeXuat (string MaCTDeXuat, SelectOptions option)
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaCTDeXuat = MaCTDeXuat;  
            return Adapter.SelectByField(obj,"MaCTDeXuat",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTDeXuat 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaCTDeXuatLST (string MaCTDeXuat )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaCTDeXuat = MaCTDeXuat;  
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCTDeXuat"),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaCTDeXuatLST (string MaCTDeXuat, SelectOptions option)
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaCTDeXuat = MaCTDeXuat;  
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCTDeXuat",option),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaDXCungUng",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaDXCungUngLST (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDXCungUng"),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaDXCungUngLST (TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaDXCungUng",option),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (string MaDXCungUng )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return Adapter.SelectByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (string MaDXCungUng, SelectOptions option)
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return Adapter.SelectByField(obj,"MaDXCungUng",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaDXCungUngLST (string MaDXCungUng )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDXCungUng"),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaDXCungUngLST (string MaDXCungUng, SelectOptions option)
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDXCungUng",option),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaTBLST (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTB"),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaTBLST (TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaTB",option),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (string MaTB )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaTB = MaTB;  
            return Adapter.SelectByField(obj,"MaTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (string MaTB, SelectOptions option)
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaTB = MaTB;  
            return Adapter.SelectByField(obj,"MaTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaTBLST (string MaTB )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaTB = MaTB;  
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTB"),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectByMaTBLST (string MaTB, SelectOptions option)
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.MaTB = MaTB;  
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTB",option),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoLuong (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"SoLuong");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoLuong (TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"SoLuong",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectBySoLuongLST (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"SoLuong"),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectBySoLuongLST (TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"SoLuong",option),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoLuong (int SoLuong )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.SoLuong = SoLuong;  
            return Adapter.SelectByField(obj,"SoLuong");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoLuong (int SoLuong, SelectOptions option)
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.SoLuong = SoLuong;  
            return Adapter.SelectByField(obj,"SoLuong",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectBySoLuongLST (int SoLuong )
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.SoLuong = SoLuong;  
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"SoLuong"),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectBySoLuongLST (int SoLuong, SelectOptions option)
        { 
            TBL_ChiTietDeXuatCungUngEntity obj = new TBL_ChiTietDeXuatCungUngEntity();
            obj.SoLuong = SoLuong;  
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"SoLuong",option),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectWithConditionLST (TBL_ChiTietDeXuatCungUngEntity obj)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_ChiTietDeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietDeXuatCungUngEntity></returns>
        public List<TBL_ChiTietDeXuatCungUngEntity> SelectWithConditionLST (TBL_ChiTietDeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietDeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_ChiTietDeXuatCungUngEntity());
        }

}
}
